package com.sskj.one.mine;


import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.one.bean.InviteBean;
import com.sskj.one.bean.SevenBean;
import com.sskj.one.presenter.BasePresenter;

/**
 * @author Hey
 * Create at  2019/05/22
 */
class InvitePresenter extends BasePresenter<InviteActivity> {

    public void getInvite() {
        httpService.getInvite()
                .tag(this)
                .execute(new JsonCallBack<HttpData<InviteBean>>(this) {
                    @Override
                    public void onHTTPSuccess(HttpData<InviteBean> data) {
                        mView.getInviteOK(data.getData());
                    }
                });
    }

    public void getSevenLevel() {
        httpService.getSevenLevel()
                .tag(this)
                .execute(new JsonCallBack<HttpData<SevenBean>>() {
                    @Override
                    public void onHTTPSuccess(HttpData<SevenBean> data) {
                        mView.getSevenOK(data.getData());
                    }
                });
    }
}
